/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}
a{
    color: #007AFF;
    text-decoration: none;
}
/* 登录注册容器 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #007AFF;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #007AFF;
    outline: none;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group input {
    width: 60%;
}

.captcha-group img {
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
}

button {
    width: 100%;
    padding: 12px;
    background: #007AFF;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background: #0056b3;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #007AFF;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* 添加首页相关样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    color: #007AFF;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #007AFF;
}

.search {
    display: flex;
    gap: 10px;
}

.search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 200px;
}

.search button {
    padding: 8px 16px;
    width: auto;
}

.main {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #007AFF;
    margin-bottom: 20px;
}

.couple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.couple-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.couple-card:hover {
    transform: translateY(-5px);
}

.couple-avatars {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.couple-avatars img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.couple-info {
    padding: 10px;
    text-align: center;
}

.couple-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.quote-section {
    background: #007AFF;
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.quote p {
    font-size: 24px;
    margin-bottom: 20px;
}

.quote cite {
    font-style: italic;
}

.footer {
    background: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    color: #666;
    margin: 5px 0;
}

/* 情侣详情页样式 */
.couple-detail {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.couple-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.couple-header .couple-avatars img {
    width: 120px;
    height: 120px;
}

.timeline-section {
    margin: 40px 0;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #007AFF;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 30px 0;
}

.timeline-date {
    width: 120px;
    text-align: right;
    padding-right: 30px;
    color: #007AFF;
    font-weight: bold;
}

.timeline-content {
    flex: 1;
    max-width: 500px;
    padding-left: 30px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #007AFF;
    border-radius: 50%;
    transform: translateY(-50%);
}
.timeline-bg{
    background: white;
}
.lovername{
    font-weight: bold;
    font-size: 21px;
}
.start-time{
    display: block;
    margin:10px;
    font-size: 20px;
}
.comment-section {
    margin-top: 40px;
}

.comment-form {
    margin-top: 10px;
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.comment-user {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-user .username {
    color: #007AFF;
    font-weight: bold;
}

.comment-user .time {
    color: #999;
}

.comment-actions {
    margin-top: 10px;
    text-align: right;
}

.comment-actions .like-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
}
.like-section{
    text-align: center;
    width: 100px;
    margin: 0 auto;
}
.comment-actions .like-btn:hover {
    color: #007AFF;
}

/* 年份筛选样式 */
.filter-section {
    margin-bottom: 30px;
}

.year-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.year-filter a {
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.year-filter a:hover,
.year-filter a.active {
    background: #007AFF;
    color: #fff;
}

.year-filter select {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
}

.year-filter select:focus {
    outline: none;
    border-color: #007AFF;
}

/* 添加时间轴相关样式 */
.image-upload {
    border: 2px dashed #ddd;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-top: 10px;
}

.image-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    border-color: #007AFF;
    outline: none;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    color: #007AFF;
    margin-bottom: 30px;
    text-align: center;
}

/* 搜索相关样式 */
.search-header {
    margin-bottom: 30px;
    text-align: center;
}

.search-header h2 {
    color: #007AFF;
    margin-bottom: 10px;
}

.search-header p {
    color: #666;
}

.no-result {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

.no-result p {
    color: #666;
    margin-bottom: 20px;
}

.no-result .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007AFF;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.no-result .btn:hover {
    background: #0056b3;
}

/* 个人中心样式 */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-info h2 {
    color: #333;
    font-size: 24px;
    margin: 0;
}

.profile-info .bio {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0;
    line-height: 1.5;
}

.info-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.info-list p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    margin: 0;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
}

.info-list .icon {
    font-size: 18px;
    color: #007AFF;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.profile-actions button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.profile-actions button.edit-info {
    background: #007AFF;
    color: white;
}

.profile-actions button.change-password {
    background: #fff;
    color: #007AFF;
    border: 1px solid #007AFF;
}

.profile-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 修改按钮样式 */
.btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 头像上传样式 */
.profile-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.avatar-upload button {
    background: none;
    border: 1px solid #007AFF;
    color: #007AFF;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-upload button:hover {
    background: #007AFF;
    color: #fff;
}

/* 个人资料样式 */
.profile-info {
    text-align: center;
}

.profile-info .bio {
    color: #666;
    margin: 10px 0;
}

.info-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.info-list p {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.info-list .icon {
    font-size: 18px;
}

.profile-info .btn {
    margin: 0 10px;
}

/* 资料编辑表单样式 */
#editInfoForm textarea {
    min-height: 80px;
}

#editInfoForm select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

#editInfoForm select:focus {
    border-color: #007AFF;
    outline: none;
}

.btn-add{
    display: block;
    border: 1px solid #007AFF;
    padding: 10px;
    background: #007AFF;
    margin: 10px;
    width: 100px;
    text-align: center;
    border-radius: 10px;
    color: white;
}

.timeline-images img{
    margin: 10px;
    width: 100px;
    border-radius: 20px;
}

/* 点赞和评论记录样式 */
.like-item, .comment-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.like-item .comment-content, .comment-item .comment-content {
    color: #666;
    margin: 5px 0;
    font-style: italic;
}

.like-item .time, .comment-item .time {
    color: #999;
    font-size: 0.9em;
    margin-top: 5px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

/* 模态框按钮样式 */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.form-actions button {
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 100px;
}

.form-actions button[type="submit"] {
    background: #007AFF;
    color: white;
}

.form-actions button[type="button"] {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.form-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-actions button[type="submit"]:hover {
    background: #0056b3;
}

.form-actions button[type="button"]:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

/* 模态框样式优化 */
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-content h2 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
    outline: none;
}
.profile-section{
    padding: 15px;
    margin: 2px 0px 15px 0px;
    background: white;
    border-radius: 15px;
}
.profile-section h3{
    margin: 3px 0px 10px 5px;
}